package com.kehutong.contact.entity;

import com.kehutong.contact.enums.CustomerStatus;
import com.kehutong.contact.enums.CustomerType;
import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.util.IDType;

/**
 * 客户归属记录
 * @author liujinwang
 */
@Table(value="t_customer_record", comment="客户归属记录", multi=true, idType = IDType.TIMESTAMP)
public class CustomerRecord extends Entity {

    private static final long serialVersionUID = -8594151322302778063L;

    protected CustomerRecord(String id) {
        super(id);
    }

    @Column(comment = "客户id")
    private String customerId;

    @Column(comment = "目前归属名称")
    private String currentName;

    @Column(comment = "目前归属编号")
    private String currentNo;

    @Column(comment = "原来归属名称")
    private String beforeName;

    @Column(comment = "原来归属编号")
    private String beforeNo;

    @Column(comment="客户类型")
    private CustomerType customerType;

    @Column(comment="客户状态")
    private CustomerStatus customerStatus;

    @Column(comment="所属行业")
    private String industry;

    @Column(comment = "操作人ID")
    private String operateNo;

    @Column(comment = "操作人名称")
    private String operateName;

    @Column(comment="逻辑删除")
    private boolean deleted;

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getCurrentName() {
        return currentName;
    }

    public void setCurrentName(String currentName) {
        this.currentName = currentName;
    }

    public String getCurrentNo() {
        return currentNo;
    }

    public void setCurrentNo(String currentNo) {
        this.currentNo = currentNo;
    }

    public String getBeforeName() {
        return beforeName;
    }

    public void setBeforeName(String beforeName) {
        this.beforeName = beforeName;
    }

    public String getBeforeNo() {
        return beforeNo;
    }

    public void setBeforeNo(String beforeNo) {
        this.beforeNo = beforeNo;
    }

    public CustomerType getCustomerType() {
        return customerType;
    }

    public void setCustomerType(CustomerType customerType) {
        this.customerType = customerType;
    }

    public CustomerStatus getCustomerStatus() {
        return customerStatus;
    }

    public void setCustomerStatus(CustomerStatus customerStatus) {
        this.customerStatus = customerStatus;
    }

    public String getIndustry() {
        return industry;
    }

    public void setIndustry(String industry) {
        this.industry = industry;
    }

    public String getOperateNo() {
        return operateNo;
    }

    public void setOperateNo(String operateNo) {
        this.operateNo = operateNo;
    }

    public String getOperateName() {
        return operateName;
    }

    public void setOperateName(String operateName) {
        this.operateName = operateName;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }
}
